package com.hospital.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 
 * @TableName d_blood_apply_record
 */
@Data
public class DBloodApplyRecord implements Serializable {

    @TableId(type= IdType.AUTO)
    private Integer dapplyId;

    private Integer doctorId;

    private Integer hospitalId;

    private Integer bloodProductTypeId;

    private String bloodType;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
    private Date transfusionDate;

    private BigDecimal volume;

    @TableField(exist = false)
    private String doctorName;

    @TableField(exist = false)
    private String bloodProductName;

    private String state;

    private static final long serialVersionUID = 1L;
}